<!DOCTYPE html>
<html lang="cn">
<head>
    <meta charset="UTF-8">
    <title>{$title}</title>
    <!--<link rel="stylesheet" href="/static/index/css/bootstrap.min.css">-->
    {load href="/static/index/css/bootstrap.min.css"}
    {css href="/static/index/reset.css"}
    <style type="text/css"></style>
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-12 bg-primary p20">
            <h1>{$title}</h1>
            <hr>
            <a href="{:url('rest/user/index')}" class="btn btn-default">用户列表</a>
            <a href="{:url('rest/user/create')}" class="btn btn-default">添加用户</a>
        </div>
    </div>
    <div class="row mt20">
        <div class="col-md-6">
            <table class="table table-hover bg-info">
                <tr>
                    <th>ID</th>
                    <th>NAME</th>
                    <th class="col-md-7">ACTION</th>
                </tr>
                {volist name="list" key="k" id="v" mod="2"}
                {eq name="mod" value="0"}
                <tr>
                    <td>{$v['id']}</td>
                    <td>{$v['name']}</td>
                    <td>
                        <a href="/users/{$v['id']}" class="btn btn-xs btn-default">查看信息(框)</a>
                        <a href="/users/{$v['id']}" class="btn btn-xs btn-default">查看信息(页)</a>


                        <a href="{:url('rest/user/edit', ['id'=>$v['id']])}" class="btn btn-xs btn-primary">编辑</a>
                        <button class="btn btn-xs btn-danger" data-id="{$v['id']}">删除</button>

                    </td>
                </tr>
                {/eq}
                {/volist}
            </table>
        </div>
        <div class="col-md-6">
            <table class="table table-hover bg-info">
                <tr>
                    <th>ID</th>
                    <th>NAME</th>
                    <th class="col-md-7">ACTION</th>
                </tr>
                {volist name="list" key="k" id="v" mod="2"}
                {eq name="mod" value="1"}
                <tr>
                    <td>{$v['id']}</td>
                    <td>{$v['name']}</td>
                    <td>
                        <a href="/users/{$v['id']}" class="btn btn-xs btn-default">查看信息(框)</a>
                        <a href="/users/{$v['id']}" class="btn btn-xs btn-default">查看信息(页)</a>


                        <a href="{:url('rest/user/edit', ['id'=>$v['id']])}" class="btn btn-xs btn-primary">编辑</a>
                        <button class="btn btn-xs btn-danger" data-id="{$v['id']}">删除</button>

                    </td>
                </tr>
                {/eq}
                {/volist}
            </table>
        </div>
    </div>
</div>

{js href="/static/index/js/jquery.min.js"}
{js href="/static/index/js/bootstrap.min.js"}
<script>
    
</script>
</body>
</html>